import { createRouter, createWebHashHistory } from 'vue-router'
import AddCard from '@/views/AddCard.vue'
import CardDetail from '@/views/CardDetail.vue'

const routes = [
  {
    path: '/add',
    name: 'AddCard',
    component: AddCard
  },
  {
    path: '/detail/:id',
    name: 'CardDetail',
    component: CardDetail
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
